import request from "@/utils/request.js";
import wechat from "@/libs/wechat.js";
/**
 * 
 *	获取签名数据
 */
export function get_login_data(data) {
	return request.post("/api/get_login_data", data, {
		noAuth: true,
		loading: false,
		loadText: '',
	})
}
/**
 * 
 *	登录
 */
export function login(data) {
	return request.post("/api/login", data, {
		noAuth: true,
		loading: false,
		loadText: '',
	})
}
/**
 * 
 *	// 静默授权
 */
export function silenceAuth(data) {
	return request.post("/data/api.wxapp/session", data, {
		noAuth: true,
		loading: false,
		loadText: '',
	})
}
/**
 * 获取微信sdk配置
 * @returns {*}
 */
export function getWechatConfig() {
	return request.get("wechat/config", {
			url: wechat.signLink()
		}, {
			noAuth: true
		}
	);
}